package de.herberlin.server.ui;

import java.awt.BorderLayout;

import javax.swing.JFrame;

import de.herberlin.helpsystem.SimpleHelpSystem;
import de.herberlin.server.common.ConfigConstants;

/**
 * @author hans joachim herbertz
 * created 04.03.2004
 */
public abstract class Help {

	private static SimpleHelpSystem helpSystem=null;
	public static JFrame frame=null;

	public static void show(String path){
		
		if (helpSystem==null){
			helpSystem=new SimpleHelpSystem();
			frame=new JFrame(ConfigConstants.VERSION+" - Help");
			frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
			frame.getContentPane().setLayout(new BorderLayout());
			frame.getContentPane().add(helpSystem);
			frame.setSize(320,320);
		}
		frame.setVisible(true);
		helpSystem.display(path);
		
	}
}
